package server;

/**
 *
 * @author BeTo
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    static String VLCroute, port, ipdest, filepath;

    public static void init() {
        VLCroute = "/Applications/VLC.app/Contents/MacOS/VLC";
        port = "12340";
        ipdest = "127.0.0.1";
        filepath = "/Users/BeTo/Documents/video1.mpg";
    }

    public static void main(String[] args) {
        /*In this example code we use defined parameters that works locally
        in an specific computer. With this we define the parameters we will
        need to execute in our application.*/
        init();
        videoserverp2p server = new videoserverp2p(VLCroute, filepath, ipdest, port);
        server.sendvideo();
    }
}
